package br.com.evoluy.util;

public class SenhaFactory {
	
	public String getSenha(String data,String telefone,String psf)
	{
		String password = null;
		int soma = 0;
		
		String num1[] = data.split("/");
		
		for(int i=0;i<=2;i++)
		{
			soma += Integer.parseInt(num1[i]);
		}
		
		String t1 = telefone.replace(")","/");
		String t2[] = t1.split("/");
		String t3 = t2[1].trim();
		String t4 = t3.replace("-","");
		t4.trim();
		soma += Integer.parseInt(t4);
		soma += Integer.parseInt(psf);
		
		password = String.valueOf(soma);
		
	  return password;
	}

}
